import request from '@/utils/request'

// 异常单证列表
export function unusualOrderList(query) {
  return request({
    url: '/unusualCharge/list',
    method: 'get',
    params: query
  })
}

// 新增异常单证
export function unusualOrderAdd(params) {
  return request({
    url: '/unusualCharge',
    method: 'post',
    data: params
  })
}

// 新增异常单证
export function unusualOrderUpadte(params) {
  return request({
    url: '/unusualCharge',
    method: 'put',
    data: params
  })
}

// 删除异常单证
export function unusualOrderDelete(ids) {
  return request({
    url: '/unusualCharge/' + ids,
    method: 'delete',
  })
}

// 异常单证详情
export function unusualOrderDetail(ids) {
  return request({
    url: '/unusualCharge/' + ids,
    method: 'get',
  })
}

// 异常单证审核
export function unusualOrderAudit(params) {
  return request({
    url: '/unusualCharge/audit',
    method: 'post',
    data: params
  })
}